package com.xds.springcloud.service;

import org.springframework.stereotype.Component;

/**
 * @Author Bai Xu
 * @Date 2021/9/30 14:59
 * @Version 1.0
 * 处理异常 服务器宕机
 */
@Component
public class PaymentFallbackService  implements PaymentHystrixService{
    @Override
    public String paymentInfo_ok(Integer id) {
        return "PaymentFallbackService---> fall back_OK";
    }

    @Override
    public String timeOut(Integer id) {
        return "PaymentFallbackService----> fall back_TimeOut";
    }
}
